#!/bin/sh

jobid=$1
filename=$2


filepath="/var/www/docdiscuss/jobs/$jobid/$filename"

output=`pdfinfo ${filepath} | grep "Pages" | cut -d: -f2 | tr -s " " | cut -d" " -f2`
width=${output}
echo -n $width

